package com.v2.k30;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;


/**
 * 测试SmartFactoryBean
 */
public class Test {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);

		System.out.println(applicationContext.getBean("user"));
		System.out.println(applicationContext.getBean("user"));

	}
}
